//
//  searchCollectionViewCell.m
//  半糖
//
//  Created by RenShuang on 15-9-1.
//  Copyright (c) 2015年 shuang. All rights reserved.
//

#import "searchCollectionViewCell.h"
#import "BaseHeader.h"

#define cell_width   self.contentView.frame.size.width
#define cell_height  self.contentView.frame.size.height

@implementation searchCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(cell_width/10-5, cell_height/4, cell_height/2, cell_height/2)];
        _myImageView.layer.masksToBounds = YES;
        _myImageView.layer.cornerRadius = self.contentView.frame.size.height/4;
        _myImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_myImageView];
        [_myImageView release];
        
        self.cLabel = [[UILabel alloc] initWithFrame:CGRectMake(cell_width/10+cell_height/2, cell_height/4, cell_height/2+30, cell_height/4)];
        self.cLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:_cLabel];
        
        self.eLabel = [[UILabel alloc] initWithFrame:CGRectMake(cell_width/10+cell_height/2, cell_height/2, cell_height/2+30, cell_height/4)];
        self.eLabel.font = [UIFont systemFontOfSize:14.];
        self.eLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:_eLabel];
        
    }
    return self;
}

@end
